﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASP.NET
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        public int i = 0; //注：定义一个全局字段。

        public string pub() //注：定义一个全局方法。
        {
            string s = "'调用方法测试'";
            return s;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            for (int n = 0; n <= 3; n++)
            {
                i += n;
            }
        }
    }
}